﻿using System;
using System.Collections.Generic;
using System.Text;
using NBusiness.Query;

namespace NBusiness.Data.Providers.SqlServer
{
    public class SqlParameterValue : IParameterValue
    {
        public SqlParameterValue(string name, object value)
            : this(name, value, ParameterValueDirection.Input)
        { }

        public SqlParameterValue(string name, object value, ParameterValueDirection direction)
        {
            _name = name;
            _value = value;
            _direction = direction;
        }

        private string _name;
        private object _value;
        private ParameterValueDirection _direction;

        public string Name
        {
            get { return _name; }
        }
        
        public object Value
        {
            get { return _value; }
            set { _value = value; }
        }

        public ParameterValueDirection Direction
        {
            get { return _direction; }
            set { _direction = value; }
        }
    }
}
